package cn.jilian.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import cn.jilian.data.util.ConfigConstants;

@Entity
@Table(name="bt_file")
public class LobFile {
	
	public static final Long META_USER_IMAGE=53929L;
	
	public static final Long META_SYS_FILE=100060138275L;
	
	public static final String AVATAR="avatar";
	
	public static final String LOGO="logo";
	@Id
	@GeneratedValue(generator="seq_sid")
	@GenericGenerator(name = "seq_sid", strategy = ConfigConstants.STD_SID_SEQ,parameters = {@Parameter(name = "seq_name", value = "seq_sid")})
	@Column(name="sid")
	private Long id;
	
	private Long fid;
	
	private String name;
	
	@Lob
	private byte[] code;
	
	@Column(name="text")
	private String ext;
	
	private Integer flag=1;
	
	private Long meta;
	
	@Column(name="check_sum")
	private Long checkSum;
	
	@Column(name="tims")
	private Date tims;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getFid() {
		return fid;
	}

	public void setFid(Long fid) {
		this.fid = fid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte[] getCode() {
		return code;
	}

	public void setCode(byte[] code) {
		this.code = code;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Long getMeta() {
		return meta;
	}

	public void setMeta(Long meta) {
		this.meta = meta;
	}

	public Long getCheckSum() {
		return checkSum;
	}

	public void setCheckSum(Long checkSum) {
		this.checkSum = checkSum;
	}

	public Date getTims() {
		return tims;
	}

	public void setTims(Date tims) {
		this.tims = tims;
	}
	
	
}
